widget-factory: Disconnect clipboard watcher on close
authorBenjamin Otte <otte@redhat.com>
Wed, 16 Dec 2015 14:43:05 +0000 (15:43 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 16 Dec 2015 14:44:52 +0000 (15:44 +0100)
commit1e1064398c7607d197c563c42f8901ac67982a9f
treee47f4654783f0082bf85b6d2e9929a338bdf06af
parentb456db8cf4c8c7d52d4a5c90948bd659b0716de6
widget-factory: Disconnect clipboard watcher on close

The clipboard emit events after the button we connected it to was
already destroyed (on application close for example), so make sure we
don't try to use that dead button.
demos/widget-factory/widget-factory.c